package com.example.rwq_test.anno.customAnno.EventAnnotation.event;

import com.example.rwq_test.anno.customAnno.EventAnnotation.EventTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.beans.ConstructorProperties;

/**
 * @Description
 * @Author renweiqiang
 * @Date 2024/4/28 上午10:54
 */
@Getter
@Setter
@ToString(callSuper = true)
public class Event1 extends Event{
    /**
     * 事件状态
     */
    private Integer state;

    /**
     * 事件类型
     *  加 @ConstructorProperties 序列化和反序列化会使用
     */
    @ConstructorProperties({"id", "event_type", "state"})
    public Event1(Long id , Integer state) {
        super(id, EventTypeEnum.EVENT1);
        this.state = state;
    }
}
